from flask import jsonify


def success(data=None, message="success",code=200):
    return jsonify({"code": code, "message": message, "data": data})


def error(message="error", code=400, http_status=400, data=None):
    return jsonify({"code": code, "message": message, "data": data}), http_status
